#include "include/ToolButton.h"


ToolButton::ToolButton(Tool &tool){
    m_Tool=&tool;
    this->setText(QString::fromStdString(   tool.m_Name));
}



void ToolButton::mousePressEvent(QMouseEvent *e){
    if(hitButton(e->pos())){
        emit Clicked(*m_Tool);
    }
}
